package cn.ayanami.blog.article.entity.dto;

import java.util.List;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

public class AddArticleDto {
    @NotBlank
    private String articleTitle;

    @NotBlank
    private String articleText;

    private String articleHtml;

    @NotNull
    @Max(5)
    @Min(1)
    private Byte articleType;
    
    @NotNull
    private Byte publishType;


    @NotEmpty
    private List<Integer> categoryList;


    public String getArticleTitle() {
        return articleTitle;
    }


    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }


    public String getArticleText() {
        return articleText;
    }



    public Byte getArticleType() {
        return articleType;
    }


    public void setArticleType(Byte articleType) {
        this.articleType = articleType;
    }


    public void setArticleText(String articleText) {
        this.articleText = articleText;
    }


    public String getArticleHtml() {
        return articleHtml;
    }


    public void setArticleHtml(String articleHtml) {
        this.articleHtml = articleHtml;
    }


    public Byte getPublishType() {
        return publishType;
    }


    public void setPublishType(Byte publishType) {
        this.publishType = publishType;
    }


    public List<Integer> getCategoryList() {
        return categoryList;
    }


    public void setCategoryList(List<Integer> categoryList) {
        this.categoryList = categoryList;
    }
    

    
}
